<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="com.google.appengine.api.users.User" %>
<%@ page import="com.google.appengine.api.users.UserService" %>
<%@ page import="com.google.appengine.api.users.UserServiceFactory" %>
<%@ page import="java.util.List" %>
<%@ page import="javax.jdo.PersistenceManager" %>
<%@ page import="rahcir.Shop" %>
<%@ page import="rahcir.PMF" %>

<html>
  <body>
<%
    String id = request.getParameter("id");
    PersistenceManager pm = PMF.get().getPersistenceManager();
	Shop s = pm.getObjectById(Shop.class, Integer.parseInt(id));
%>    
    <div>Shop Name: <%=s.getShopname() %></div> 
    <div>Address: <%=s.getAddress() %></div> 
    <div style="white-space: pre; ">comment: <%=s.getComment().getValue() %></div> 
    
　　　<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="<%=s.getMapurl().getValue() %>"></iframe><br /><small><a href="<%=s.getMapurl().getValue() %>" style="color:#0000FF;text-align:left">大きな地図で見る</a></small>    
	<br></br>
	
<%
    pm.close();
%>

 <a href="/editShopForm.jsp?id=<%=s.getId() %>">Edit</a> | 
 <a href="/rahcir?type=deleteShop&id=<%=s.getId() %>">Delete</a> | 
 <a href="/listShop.jsp">List Shop</a>

  </body>
</html>